Skip to content

Support Fragments for intra document markdown editor links#19639

Merged
mjbvz merged 1 commit intomicrosoft:masterfrom
mjbvz:support-md-toc-links-in-editor-within-docs
Jan 31, 2017
Merged

Support Fragments for intra document markdown editor links#19639
mjbvz merged 1 commit intomicrosoft:masterfrom
mjbvz:support-md-toc-links-in-editor-within-docs

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Jan 31, 2017

Adds support for clicking editor links with fragements in the markdown editor:

[Proxy Server Support](/docs/setup/setup-overview.md#proxy-server-support)

Clicking on the link jumps to the correct header in the target document

Adds support for editor links with fragements for markdown. This jumps to the correct header location if one can be found
@mention-bot
Copy link
Copy Markdown

@mjbvz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @joaomoreno and @jrieken to be potential reviewers.

@mjbvz mjbvz merged commit 7c96cd3 into microsoft:master Jan 31, 2017
@mjbvz mjbvz added this to the February 2017 milestone Jan 31, 2017
@mjbvz mjbvz added the verification-needed Verification of issue is requested label Jan 31, 2017
@jrieken jrieken added the verified Verification succeeded label Feb 24, 2017
}
return uri;

return vscode.Uri.parse(`command:_markdown.openDocumentLink?${encodeURIComponent(JSON.stringify({ fragment: uri.fragment, path: resourcePath }))}`);
Copy link
Copy Markdown
Member

@jrieken jrieken Feb 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot of code for using an URI that goes like this: file:///files/thisFile.md#L22. Unless there are bugs which I would happily fix, the OpenerService should handle such links correctly.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

verification-needed Verification of issue is requested verified Verification succeeded

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants